<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String infusionBloodInfoJson= (String)request.getAttribute("infusionBloodInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_infusion_blood_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_infusion_blood" method="post" style="width: 100%">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="infusionBloodRecordCount" value="0"/>
 <%-- 	<table width="100%" cellspacing="0" border="0" cellpadding="0">
		<tbody>
			<tr>
				<td align="left" colspan="6" class="dark">
					<div style="float:right">
						<input type="submit" value="保存" class="int">&nbsp;
						 <inpu type="button" value="新增" onclick="addInfusionBloodRecord()"
							class="int"/>
					</div></td>
			</tr>
			<tr>
				<td align="left" class="tdLabel_7">输血次数</td>
				<td class="tdLabel_8"><input type="text" name="infusionBloodTimes"
					class="input_box" style="width:150px"
					value="${infusionBloodInfo.infusionBloodTimes}">
				</td>
				<td align="left" class="tdLabel_7">输血反应次数</td>
				<td class="tdLabel_8"><input type="text" name="infusionBloodReactTimes" class="input_box"
					style="width:150px"
					value="${infusionBloodInfo.infusionBloodReactTimes}">
				</td>

				<td align="left" class="tdLabel_7">输血总量</td>
				<td class="tdLabel_8"><input type="text" name="infusionBloodTotalVolume"
					class="input_box" style="width:150px"
					value="${infusionBloodInfo.infusionBloodTotalVolume}">
				</td>

			</tr> 
		</tbody>
	</table>--%>
	<table style="width: 100%" id="infusionBloodRecords">
		<thead>
		<!-- 	 <tr>
				<td colspan="7" class="tdLabel_7">

					<div style="float:right">
						<span class="red" id="tsxx" style="display:none"> </span> <input
							type="button" value="新增" onclick="addInfusionBloodRecord()"
							class="btn">
							<input type="submit" value="保存" class="btn">&nbsp;
					</div></td>
			</tr> -->
			<tr>
				<td class="tdLabel_4" width="8%">患者血型</td>
			    <td class="tdLabel_4" width="8%">患者RH血型</td>
				<!-- <td class="tdLabel_4" width="8%">血液类型</td> -->
				<td class="tdLabel_4" width="8%">血液类型</td>
				<td class="tdLabel_4" width="8%">血量</td>
				<td class="tdLabel_4" width="8%">单位</td>
				<td class="tdLabel_4" width="15%">发血日期</td>
				<td class="tdLabel_4" width="8%">操作人</td>
			</tr>

		</thead>
		<tbody>

		</tbody>
	</table>
</form>
<div hidden="true">
	<table>
		<tr id="templateInfusionBloodTr">
			<td class="tdLabel_8">
				<input type="text" name="infusionBloodRecords[0].patientBloodType" readonly="readonly" style="width: 100%;"/>
			</td>
			<td class="tdLabel_8" >
				<input type="text" name="infusionBloodRecords[0].patientRhBloodType" readonly="readonly" style="width: 100%;"/>
			</td>
			<td class="tdLabel_8">
				<input type="text" name="infusionBloodRecords[0].bloodType" readonly="readonly" style="width: 100%;"/>
			</td>
			<td class="tdLabel_8">
				<input type="text" name="infusionBloodRecords[0].bloodVolume" readonly="readonly" style="width: 100%;"/>
			</td>
			<td class="tdLabel_8">
				<input type="text" name="infusionBloodRecords[0].bloodUnit" readonly="readonly" style="width: 100%;"/>
			</td>
			<td class="tdLabel_8">
			 <input type="text" name="infusionBloodRecords[0].bleedingTime" readonly="readonly" style="width: 100%;"/>
			<!-- <input type="text" style="width:98%"
				name="infusionBloodRecords[0].bleedingTime"
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
				class="input_box"> -->
			</td>
			<td class="tdLabel_8">
				<input type="text" name="infusionBloodRecords[0].operator" readonly="readonly" style="width: 100%;"/>
			</td>
			
		
		<!-- 	<td class="tdLabel_8" align="center"><a class="btn" style="padding:4px;margin:0 auto;"
				onclick="deleteInfusionBloodRecord(this)">删除</a>
			</td> -->
		</tr>

	</table>
</div>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		var infusionBloodInfoJson= <%=infusionBloodInfoJson%>;
		
		//console.log(baseInfoJson);
		//console.log(infusionBloodInfoJson);
		
		
		initPage(baseInfoJson,infusionBloodInfoJson);
	})
</script>